package org.jacquesh.mall.gateway.filters;

import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.GatewayFilterChain;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * @author Jacquesh
 * @version 1.0
 * @date 2020/9/29 0:36
 */
@Component("authFilter")
@Slf4j
public class AuthFilter implements GatewayFilter, Ordered {
    private static final String AUTH = "Authorization";
    private static final String NAME = "Mall-user-name";
    private static final String ID = "Mall-user-id";
    public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
        return null;
    }

    public int getOrder() {
        return 0;
    }
}
